package com.iversonx.decorator.example_1.service.v2;

import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 *
 **/
@Service
public class PrizeCalculateServiceV2 {
    private final PrizeCalculator prizeCalculator;

    public PrizeCalculateServiceV2(PrizeCalculator prizeCalculator) {
        this.prizeCalculator = prizeCalculator;
    }

    public BigDecimal calc(String user) {
        return prizeCalculator.calc(user);
    }
}
